package cn.ncupyh.polymorphism;

public class Dog extends Animal{
    public Dog() {
    }

    public Dog(int age, String color) {
        super(age, color);
    }
//    看家lookHome方法(无参数)
    public void lookhome(){
        System.out.println("功能:看家~");
    }

    @Override
    public void eat(String something) {
        System.out.println(age+"岁的"+color+"的狗两只前腿死死的抱住"+something+"猛吃");
    }
}
